import { get, post } from '@/utils/http'
/**
 * 用户登录
 * @param userData 用户名账号
 * @returns {[key: string]:any}
 */
export const userLoginApi = (userData) => post<UserModule.ApiUserLoginRet>('/api/user/login', userData)

// 添加文章
export const addTextApi = (addroleData) => post('/api/schoolMessage/add',addroleData)
// 文章列表
export const schoolMessageApi = () => get('/api/schoolMessage/list')


// 添加通知
export const addNoticeApi = (addroleData) => post('/api/schoolNotice/add',addroleData)
// 通知列表
export const schoolNoticeApi = () => get('/api/schoolNotice/list')


export const loadItemApi = () => get('/api/items/list')


//一卡通金额数据
export const countApi = () => get('/api/count/list')

//一卡通管理列表
export const cardListApi = () => get('/api/card/list')



